package com.hydra.auth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hydra.auth.entity.SysRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {

    List<SysRole> findByUserCode(@Param("userCode") String userCode);

    void saveUserRoleInfo(@Param("userCode") String userCode, @Param("roleList") List<SysRole> roleList);

}
